package com.example.gnizr;

import com.gnizr.web.action.AbstractAction;
import java.util.Calendar;
import java.text.SimpleDateFormat;

public class HelloWorldAction extends AbstractAction {
	private static final long serialVersionUID = 4604179423988890376L;
	
	private String time;
	private String message;
	  
	//A Comment!
	public void setTime() {
		Calendar thedate = Calendar.getInstance();
		SimpleDateFormat temp = new SimpleDateFormat("EEEEE, MMMMM d, yyyy 'and the current time is' hh:mm:ss a'.'");
		this.time = temp.format(thedate.getTime());
	}
	  
	public String getTime() {
		return time;
	}
	  
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
		this.setTime();
	}

	@Override
	protected String go() throws Exception {
		return SUCCESS;
	}
}
